package com.ketangpai.admin.service.impl;

import com.ketangpai.admin.mapper.TaskManagementMapper;
import com.ketangpai.admin.entity.Task;
import com.ketangpai.admin.entity.TaskNumber;
import com.ketangpai.admin.service.TaskManagementService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;

@Service
public class TaskManagementServiceImpl implements TaskManagementService {
    @Resource
    TaskManagementMapper taskManagementMapper;

    @Override
    public Task[] selectTaskManagement(Integer userId, String status) {
        return taskManagementMapper.selectTaskManagement(userId,status);
    }

    @Override
    public TaskNumber getTaskNumber(Integer userId) {
        return taskManagementMapper.getTaskNumber(userId);
    }
}
